package com.lm.activiti.boot.spring.aop.advisor;


import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;

/**
 * @author lm_jcf
 * @date 2021/1/26 14:45
 */
public class AdvisorCase implements MethodInterceptor {

    @Override
    public Object invoke(MethodInvocation methodInvocation) throws Throwable {
        System.out.println("前置切层");

        Object obj = methodInvocation.proceed();

        System.out.println("后置切层");

        return obj;
    }
}
